<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增partpost')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-post-add">
            <h4 class="form-header h4">partpost信息</h4>
            <div class="form-group">    
                <label class="col-sm-3 control-label">岗亭名称：</label>
                <div class="col-sm-8">
                    <input name="partPostName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">停车场：</label>
<!--                <div class="col-sm-8">
                    <input name="partLotId" class="form-control" type="text">
                </div>-->
                <div class="col-sm-8">
                    <select name="partLotId" class="form-control m-b">
                        <option th:each="partLot:${partLots}" th:text="${partLot.partLotName}"
                                th:value="${partLot.partLotId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">临时车进场：</label>
                <div class="col-sm-8">
                    <select name="partTempEnter" class="form-control m-b" th:with="type=${@dict.getType('part_emp_enter')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否收费：</label>
                <div class="col-sm-8">
                    <!--<input name="partToll" class="form-control" type="text">-->
                    <select name="partToll" class="form-control m-b" th:with="type=${@dict.getType('part_post_poll')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <input name="partScene" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <input name="partEnter" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control"></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "part/post"
       /* $("#form-post-add").validate({
            focusCleanup: true
        });*/

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-post-add').serialize());
            }
        }
    </script>
</body>
</html>